package com.tengyun.middleplatform.trade.etl.mapper.result;

import com.tengyun.middleplatform.trade.etl.bo.OrdersMerchantSourceBO;
import com.tengyun.middleplatform.trade.etl.mapper.TYBaseMapper;
import com.tengyun.middleplatform.trade.etl.model.result.TradingOrderRefund;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 全平台 退款订单明细
 */
@Repository
public interface TradingOrderRefundMapper extends TYBaseMapper<TradingOrderRefund> {
    /**
     * 批量写入
     *
     * @param list
     */
    void saveBatch(List<TradingOrderRefund> list);

    /**
     * 查询诚选退款订单汇总
     * @param start
     * @param end
     * @return
     */
    List<OrdersMerchantSourceBO> queryChengxuanOrderRefund(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);

    /**
     * 查询游云南场景退款订单汇总
     * @param start
     * @param end
     * @return
     */
    List<OrdersMerchantSourceBO> queryOrderRefundGroup(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);

}